<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
    <%--    <script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>--%>
    <%--    <script src="${request.ContextPath}/js/jquery.min.js"></script>--%>
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <script>
    function confirmDel(_id){
    var flag=confirm("是否删除");
    if(flag){
    location.href="dodelect?examinationprojectId="+_id;
    }
    }
    </script>

</head>
<c:if test="${sessionScope.msg!=null}">
    <script type="text/javascript" language="JavaScript">
        alert("${msg}");
    </script>
</c:if>
<body>
<%
    session.removeAttribute("msg");
%>
<form action="toList" method="post">

    <input type="text" placeholder="请输入要查询的项目" name="examinationprojectProjectName"/>
    <input type="submit" value="查询" />
    <input  type="button" value="增加" onclick="location.href='toadd'"/>

</form>

<div>
    <table class="tablelist">

        <tr>

<%--            <th>序号</th>--%>
            <th>项目名称</th>
            <th>单体小项</th>
            <th>结果</th>
            <th>单位</th>
            <th>参考值</th>
            <th>操作</th>

        </tr>

        <c:forEach var="exa" items="${examinationprojectList}">
            <tr>
<%--                <td>${exa.examinationprojectId}</td>--%>
                <td>${exa.examinationprojectProjectName}</td>
                <td>${exa.examinationprojectSmallproject}</td>
                <td>${exa.examinationprojectResults}</td>
                <td>${exa.examinationprojectUnit}</td>
                <td>${exa.examinationprojectReference}</td>
                <td><a href="toupdate?examinationprojectId=${exa.examinationprojectId}">修改</a> <a href="javascript:void(0)"  onclick="confirmDel(${exa.examinationprojectId})">删除</a></td>
            </tr>


        </c:forEach>
    </table>
</div>





</body>


</html>